import concreteHandler.GeneralManager;
import concreteHandler.GroupLeader;
import concreteHandler.Manager;
import model.LeaveRequest;

public class Client {

    public static void main(String[] args) {
        GroupLeader groupLeader = new GroupLeader();
        Manager manager = new Manager();
        GeneralManager generalManager = new GeneralManager();

        groupLeader.setNextHandler(manager)
                   .setNextHandler(generalManager);

        LeaveRequest leave = new LeaveRequest("小明", 7, "身体不适");

        groupLeader.submit(leave);
    }
}

